/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

package app.dtos;

import com.google.common.base.Objects;

import java.io.Serializable;

/**
 * <p>
 * .
 * </p>
 *
 * @author sagyf yang
 * @version 1.0 2014-05-22 15:52
 * @since JDK 1.6
 */
public class MemberSmsCode implements Serializable {
    private static final long serialVersionUID = 5220171502669933808L;

    private final String phone;

    private final String code;

    private final long time;

    public MemberSmsCode(String phone, String code, long time) {
        this.phone = phone;
        this.code = code;
        this.time = time;
    }

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
                .add("phone", phone)
                .add("code", code)
                .add("time", time)
                .toString();
    }

    public long getTime() {
        return time;
    }

    public String getCode() {
        return code;
    }

    public String getPhone() {
        return phone;
    }
}
